package per.turtle.common.mq.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
import per.turtle.common.mq.po.Msg;

/**
 * @author yuj
 */
@Component
public class DirectListener2 {

    @RabbitListener(queues = "direct_queue2")
    public void displayMail(Msg msg) {
        System.out.println("direct_queue2队列监听器2号收到消息" + msg.toString());
    }

}
